<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition>
	<ui:param name="idTag" value="#{id}" />
	<ui:param name="labelTag" value="#{label}" />
	<ui:param name="valueTag" value="#{value}" />
	<ui:param name="requiredTag" value="#{required}" />
	<ui:param name="includeTimeTag" value="#{includeTime}"></ui:param>

	<p:outputLabel value="#{labelTag}:" for="#{idTag}" style="float:right;" />
	<c:if test="${empty includeTimeTag}">
		<p:inputMask value="#{valueTag}" id="#{idTag}" mask="99/99/9999" required="#{requiredTag}" converter="dateConverter"/>
	</c:if>
	
	<c:if test="${includeTimeTag}">
		<p:inputMask value="#{valueTag}" id="#{idTag}" mask="99/99/9999 99:99" required="#{requiredTag}" converter="dateTimeConverter"/>
	</c:if>
	<p:message for="#{idTag}" display="icon" />
</ui:composition>
</html>